/*
 * Created by JFormDesigner on Sun Oct 26 19:42:12 BRST 2008
 */

package visualCAD;

import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;

/**
 * @author Felipe Santos
 */
public class stepWindowView extends JFrame {
	public stepWindowView() {
		initComponents();
	}

	private void initComponents() {
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		panel2 = new JPanel();
		label6 = new JLabel();
		nameTextField = new JTextField();
		label2 = new JLabel();
		stepSizeSpinner = new JSpinner();
		label1 = new JLabel();
		label3 = new JLabel();
		stepDepthSpinner = new JSpinner();
		label8 = new JLabel();
		label4 = new JLabel();
		sideComboBox = new JComboBox();
		label9 = new JLabel();
		label12 = new JLabel();
		toleranceStepTextField = new JSpinner();
		label5 = new JLabel();
		label10 = new JLabel();
		rotationSpinner = new JSpinner();
		panel3 = new JPanel();
		panel4 = new JPanel();
		panel5 = new JPanel();
		panel6 = new JPanel();
		panel7 = new JPanel();
		stepSplitPanel = new JSplitPane();
		submitButton = new JButton();
		cancelButton = new JButton();
		helpButton = new JButton();
		statusLabel = new JLabel();

		//======== this ========
		setTitle("Create Step");
		setVisible(true);
		Container contentPane = getContentPane();

		//======== panel2 ========
		{
			panel2.setLayout(new GridBagLayout());
			((GridBagLayout)panel2.getLayout()).columnWidths = new int[] {0, 0, 0, 50, 0, 0};
			((GridBagLayout)panel2.getLayout()).rowHeights = new int[] {20, 0, 0, 10, 0, 10, 0, 10, 0, 10, 0, 0, 0, 0, 0, 0};
			((GridBagLayout)panel2.getLayout()).columnWeights = new double[] {1.0, 0.0, 0.0, 0.0, 1.0, 1.0E-4};
			((GridBagLayout)panel2.getLayout()).rowWeights = new double[] {1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0E-4};

			//---- label6 ----
			label6.setText("Name:");
			panel2.add(label6, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
			panel2.add(nameTextField, new GridBagConstraints(3, 0, 2, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label2 ----
			label2.setText("Size:");
			panel2.add(label2, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));
			panel2.add(stepSizeSpinner, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label1 ----
			label1.setText("mm");
			panel2.add(label1, new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label3 ----
			label3.setText("Depth:");
			panel2.add(label3, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
			panel2.add(stepDepthSpinner, new GridBagConstraints(3, 4, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label8 ----
			label8.setText("mm");
			panel2.add(label8, new GridBagConstraints(4, 4, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label4 ----
			label4.setText("Side:");
			panel2.add(label4, new GridBagConstraints(1, 6, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- sideComboBox ----
			sideComboBox.setModel(new DefaultComboBoxModel(new String[] {
				"left",
				"right",
				"top",
				"bottom"
			}));
			panel2.add(sideComboBox, new GridBagConstraints(3, 6, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label9 ----
			label9.setText("mm");
			panel2.add(label9, new GridBagConstraints(4, 6, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label12 ----
			label12.setText(" +/-");
			panel2.add(label12, new GridBagConstraints(1, 8, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- toleranceStepTextField ----
			toleranceStepTextField.setModel(new SpinnerNumberModel(0.0, 0.0, 50.0, 1.0));
			panel2.add(toleranceStepTextField, new GridBagConstraints(3, 8, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label5 ----
			label5.setText("um");
			panel2.add(label5, new GridBagConstraints(4, 8, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label10 ----
			label10.setText("Rotation:");
			label10.setEnabled(false);
			panel2.add(label10, new GridBagConstraints(1, 10, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- rotationSpinner ----
			rotationSpinner.setModel(new SpinnerNumberModel(0.0, 0.0, null, 1.0));
			rotationSpinner.setEnabled(false);
			panel2.add(rotationSpinner, new GridBagConstraints(3, 10, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//======== panel3 ========
			{
				panel3.setLayout(new BorderLayout());

				//======== panel4 ========
				{
					panel4.setLayout(new BorderLayout());

					//======== panel5 ========
					{
						panel5.setLayout(new BorderLayout());

						//======== panel6 ========
						{
							panel6.setLayout(new BorderLayout());

							//======== panel7 ========
							{
								panel7.setLayout(new BorderLayout());
							}
							panel6.add(panel7, BorderLayout.SOUTH);
						}
						panel5.add(panel6, BorderLayout.SOUTH);
					}
					panel4.add(panel5, BorderLayout.SOUTH);
				}
				panel3.add(panel4, BorderLayout.SOUTH);
			}
			panel2.add(panel3, new GridBagConstraints(1, 12, 2, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
		}

		//======== stepSplitPanel ========
		{
			stepSplitPanel.setOrientation(JSplitPane.VERTICAL_SPLIT);
		}

		//---- submitButton ----
		submitButton.setText("Submit");

		//---- cancelButton ----
		cancelButton.setText("Cancel");

		//---- helpButton ----
		helpButton.setText("Help");

		//---- statusLabel ----
		statusLabel.setText("Status:");

		GroupLayout contentPaneLayout = new GroupLayout(contentPane);
		contentPane.setLayout(contentPaneLayout);
		contentPaneLayout.setHorizontalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addContainerGap()
							.addComponent(statusLabel)
							.addGap(399, 399, 399)
							.addComponent(helpButton)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addComponent(submitButton)
							.addGap(18, 18, 18)
							.addComponent(cancelButton))
						.addGroup(GroupLayout.Alignment.LEADING, contentPaneLayout.createSequentialGroup()
							.addContainerGap()
							.addComponent(panel2, GroupLayout.PREFERRED_SIZE, 242, GroupLayout.PREFERRED_SIZE)
							.addGap(34, 34, 34)
							.addComponent(stepSplitPanel, GroupLayout.PREFERRED_SIZE, 357, GroupLayout.PREFERRED_SIZE)))
					.addContainerGap(13, Short.MAX_VALUE))
		);
		contentPaneLayout.setVerticalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(contentPaneLayout.createParallelGroup()
						.addComponent(stepSplitPanel, GroupLayout.PREFERRED_SIZE, 486, GroupLayout.PREFERRED_SIZE)
						.addComponent(panel2, GroupLayout.PREFERRED_SIZE, 210, GroupLayout.PREFERRED_SIZE))
					.addGap(18, 18, 18)
					.addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
						.addComponent(cancelButton)
						.addComponent(submitButton)
						.addComponent(helpButton)
						.addComponent(statusLabel))
					.addContainerGap(31, Short.MAX_VALUE))
		);
		pack();
		setLocationRelativeTo(getOwner());
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	private JPanel panel2;
	private JLabel label6;
	public JTextField nameTextField;
	private JLabel label2;
	protected JSpinner stepSizeSpinner;
	private JLabel label1;
	private JLabel label3;
	protected JSpinner stepDepthSpinner;
	private JLabel label8;
	private JLabel label4;
	protected JComboBox sideComboBox;
	private JLabel label9;
	private JLabel label12;
	protected JSpinner toleranceStepTextField;
	private JLabel label5;
	private JLabel label10;
	protected JSpinner rotationSpinner;
	private JPanel panel3;
	private JPanel panel4;
	private JPanel panel5;
	private JPanel panel6;
	private JPanel panel7;
	public JSplitPane stepSplitPanel;
	protected JButton submitButton;
	protected JButton cancelButton;
	public JButton helpButton;
	public JLabel statusLabel;
	// JFormDesigner - End of variables declaration  //GEN-END:variables
}
